package com.itlong.cloud.commons.resource;

import com.itlong.cloud.commons.service.IVisitorPushMessageService;
import com.itlong.cloud.noncore.commons.IVisitorPushMessageServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <desc>
 *      App用户添加访客后主动向前端推送消息
 * </desc>
 *
 * @createDate 2018/07/13
 */
@RestController
public class VisitorPushMessageServiceResource implements IVisitorPushMessageServiceClient {
    @Autowired
    IVisitorPushMessageService iVisitorPushMessageService;

    /**
     * <desc>
     *     App用户添加访客后主动向前端推送消息
     * </desc>
     * @return
     * @author JuGuang.S
     * @createDate 2018/07/13
     */
    @RequestMapping(path = "/timeTask/visitorPushMessage")
    public void visitorPushMessage() throws Exception{
        iVisitorPushMessageService.visitorPushMessage();
    }
}
